package com.jnxx.task.domain;

import com.jnxx.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类：
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Module extends BaseDomain{

    /**
     * 模块名称
     */
    private String moduleName;
    /**
     * 项目id
     */
    private Integer projectId;

    private List<Okrcard> okrcards = new ArrayList<>();


    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    @Override
    public String toString() {
        return "Module{" +
        ", moduleName=" + moduleName +
        ", projectId=" + projectId +
        "}";
    }
}
